function D = alldom(A)
%ALLDOM Flatten design point array

D = cell(size(A, 1), size(A, 2));
for i = 1:size(A, 1)
  for j = 1:size(A, 2)-1
    D{i, j} = max(cell2mat(A(i, j, :)));
  end
end

D(:, size(A, 2)) = A(:, size(A, 2), 1)
